export default {
    namespaced:true,
    state: {
        currentUser:{},
        token:""
    },
    mutations: {
        setUser:function(state,user={}){
            state.currentUser=user;
        },
        setToken:function(state,value){
            state.token=value;
        },
        clearUser:function(state){
            state.currentUser={}
        },
        clearToken:function(state){
            state.token=""
        }
    },
    actions: {
    }
}